import request from "@/utils/request";

/**
 * 带条件分页查询运输任务信息
 * @param dto
 * @returns {*}
 */
export function gettask_transportPage(dto){
  return request({
    url: '/pd-work/task_transport/findTask_transportList',
    method: "POST",
    data: dto
  })
}

/**
 * 根据运输任务编号查询运单条数
 * @param id
 * @returns {*}
 */
export function querytasktransport(id){
  return request({
    url: '/pd-work/task_transport/queryOrder_taskByIdcount/'+id,
    method: "GET",
    param: { id: id }
  })
}

/**
 * 根据图片名称查询图片链接
 * @param images
 * @returns {*}
 */
export function getimageUrl(images){
  return request({
    url: '/pd-work/task_transport/getimageUrl',
    method: "POST",
    data: images
  })
}

/**
 * 根据运输任务编号查询运单信息
 * @param id
 * @returns {*}
 * @constructor
 */
export function ObtainWaybillBasedOnTransportationID(id){
  return request({
    url: '/pd-work/transport/ObtainWaybillBasedOnTransportationID?id='+id,
    method: "POST",
    data: id
  })
}
